﻿using System.Reflection;

namespace TestDDD.Extensions
{
    public static class AutoMapperSetup
    {
        public static IServiceCollection AddAutoMapperSetup(this IServiceCollection services)
        {
            //services.AddAutoMapper(mapperconfig =>
            //{
            //    //mapperconfig.AddProfile<AutoMapperProfile>();
            //    mapperconfig.CreateMap<AccountEntity, AccountInputDto>().ReverseMap();
            //});
            //var assemblies = Assembly.GetExecutingAssembly();
            var entityass = Assembly.Load("Domain.Entity");
            services.AddAutoMapper(entityass);
            return services;
        }
    }
}
